package com.pinda.feign;

import com.pinda.base.entity.PdArea;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(value = "aggregation-service", path = "/pd-area",url = "http://localhost:2001")
public interface PdAreaFeignClient {
    /**
     * TODO 查询所有地区
     * @return List<PdArea>
     */
    @PostMapping("/findarea")
    List<PdArea> findarea();
}
